package aop.core;


import aop.crosscutting.LogWriter;

public class MemberServiceProxy implements MemberService{
	private MemberServiceImpl ms = new MemberServiceImpl();
	private LogWriter logger = new LogWriter();

	@Override
	public void joinMember(String id, String name, int age) {
		ms.joinMember(id, name, age);//핵심로직 
		logger.log("가입처리 완료 기록");//공통로직 - 정상종료 후 
	}

	@Override
	public void getMemberById(String id) {
		logger.log("회원 조회 처리 시작");//공통 로직 - 실행전
		ms.getMemberById(id);
		
	}
	

}
